//
//  CRMessageCell.h
//  TestPrj
//
//  Created by 朱铅峰 on 2020/8/18.
//  Copyright © 2020 Xing. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CRMessageCellProtocol.h"
#import "CRSessionMessageContentView.h"
#import "CRAvatarImageView.h"
#import "CRBadgeView.h"

NS_ASSUME_NONNULL_BEGIN

@interface CRMessageCell : UITableViewCell

@property (nonatomic, strong) CRAvatarImageView *headImageView;
@property (nonatomic, strong) UILabel *nameLabel;                                 //姓名
@property (nonatomic, strong) UIImageView *bubblesBackgroundView;                  //气泡背景视图

@property (nonatomic, strong) CRSessionMessageContentView *bubbleView;           //内容区域
@property (nonatomic, strong) UIActivityIndicatorView *traningActivityIndicator;  //发送loading
@property (nonatomic, strong) UIButton *retryButton;                              //重试
@property (nonatomic, strong) CRBadgeView *audioPlayedIcon;                      //语音未读红点
@property (nonatomic, strong) UIButton *readButton;                               //已读
@property (nonatomic, strong) UIButton *selectButton;                             //选择
@property (nonatomic, strong) UIButton *selectButtonMask;                         //选择遮罩

@property (nonatomic, readonly) CRMessageModel *model;

@property (nonatomic, weak)   id<CRMessageCellDelegate> delegate;

- (void)refreshData:(CRMessageModel *)data;

@end

NS_ASSUME_NONNULL_END
